import { axios } from '@/utils/request'

const api = {
  kerword: '/goods/recommend-keyword',
  delKeyword: '/goods/recommend-keyword-delete',
  saveKeyword: '/goods/recommend-keyword-save',
  delAll: 'goods/recommend-key-batch'
}

export default api

export function list(parameter) {
  return axios({
    url: api.kerword,
    method: 'get',
    params: parameter
  })
}

export function save(parameter) {
  return axios({
    url: api.saveKeyword,
    method: 'post',
    data: parameter
  })
}

export function delKeyword(parameter) {
  return axios({
    url: api.delKeyword,
    method: 'post',
    data: parameter
  })
}

export function delAll(parameter) {
  return axios({
    url: api.delAll,
    method: 'post',
    data: parameter
  })
}
